﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    主页
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../../Content/alert.css" rel="stylesheet" type="text/css" />

    <script src="../../Scripts/jquery-1.4.4.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.alert.js" type="text/javascript"></script>

    <h2>
        <%: ViewData["Message"] %></h2>
    <p>
        若要了解有关 ASP.NET MVC 的更多信息，请访问 <a href="http://asp.net/mvc" title="ASP.NET MVC 网站">http://asp.net/mvc</a>。
    </p>
    <input id="Button1" type="button" value="button" onclick='test()' />
    <script type="text/javascript">
        function test() {
            var obj = "2010-1-12";
            var dateValue = DateParser(obj);
        }

        function DateParser(value) {            
            var splitDate = value.split("-");
            if (splitDate) {              
                var utcMilliseconds = Date.UTC(splitDate[0], splitDate[1] - 1,splitDate[2],0,0,0,0);
                return new Date(utcMilliseconds);          
            }
            return value;
        }

        $(document).ready(function () {
            $('#hiAlert').click(function () {
                hiAlert("b");
            });
        });
    </script>
    <p>颜色测试</p>
    <input id="Button2" type="button" value="0" style="background-color: #7a367a" />
    <input id="Button3" type="button" value="1" style="background-color: #994499" />
    <input id="Button4" type="button" value="2" style="background-color: #b373b3" />
    <input id="Button5" type="button" value="3" style="background-color: #cca2cc" />
    <input id="Button6" type="button" value="4" style="background-color: #e1c7e1" />

    <p>消息提示</p>
    <input id="hiAlert" value="hiAlert" type="button" />
</asp:Content>
